﻿<?php

class Application_Form_CarteScanForm extends Zend_Form
{
    
  public function init()
  {
  $this->setName('carte');

  
  $id = new Zend_Form_Element_Hidden('id');
  $id->addFilter('Int')
    ->setDecorators(array('ViewHelper'));
	
  $carte = new Zend_Form_Element_Text('carte');
  $carte->setLabel('carte')
    ->setRequired('true')
    ->addFilter('StripTags')
    ->addFilter('StringTrim')
    ->addValidator('NotEmpty')
    ->setDecorators(array('ViewHelper','FormErrors','Label','Errors'));
  
    $send = new Zend_Form_Element_Submit('send');
    $send->setAttrib('id','send_button')
      ->setDecorators(array('ViewHelper','FormErrors','Errors'));
       
      
    $this->addElements(array($id,$carte,$send));
  
  }
  
 }